<link href="../../../public/stylesheets/main.css" rel="stylesheet" type="text/css" />
<form id="form" name="form" method="post" action="">
 
</form>
#{extends 'main.html' /}
#{set title:'Portal Administrador - Listar Aula' /}

<div id="container">

	<!-- Page header -->
	<div id="header">
		<h1>SIGCFC </h1>
		<h5>Você está logado como ${nome}</h5>
	</div>

	<div id="content_wrap">
		<!-- Navigation -->
		<div id="nav">
		  <ul>		  	
			<li>
				#{a @Application.portalAdministrador()}Portal Administrador#{/a}			</li>
		  	</BR>		  	
			<center>Aula</center>
			<li>
				#{a @AulaMBean.inserirAula()}Cadastrar Aula#{/a}
			</li>
			<li>
				#{a @AulaMBean.actionListarAula()}Listar Aula#{/a}
			</li>
			<li>
				#{a @AulaMBean.buscarAula()}Buscar Aula #{/a}
			</li>
		  </ul>
  	  </div>

<div id="main">
			<center><p style="color:#c00"> ${retorno} </p></center>
			<center><h1><strong>Lista de Aulas</strong></h1>
	          <table width="513" border="0" align="center">
                <tr>
                  <th width="98" scope="row"><div align="center"><strong>Disciplina</strong></div></th>
                  <td width="71"><div align="center"><strong>Data</strong></div></td>
                  <td width="81"><div align="center"><strong>Hora Início</strong></div></td>
                  <td width="86"><div align="center"><strong>Hora Fim</strong></div></td>
                  <td width="70">&nbsp;</td>
                  <td width="81">&nbsp;</td>
                </tr>
              </table>
	  </center>
            <table width="500" border="1" align="center" cellpadding="2" cellspacing="0" bordercolor="#000000" bgcolor="#FFFFFF">
              #{list items:aula, as:'Aula'}
          <tr align="center">
	      			<td width="102" valign="top" nowrap="nowrap"><span class="style3"> ${Aula.codDisc} </span></td>
	                <td width="107" valign="top" nowrap="nowrap"><span class="style3"> ${Aula.data} </span></td>
	                <td width="85" valign="top" nowrap="nowrap"><span class="style3"> ${Aula.horaInicio} </span></td>
	                <td width="85" valign="top" nowrap="nowrap"><span class="style3">${Aula.horaFim}</span></td>
	                
	                #{form @AulaMBean.editar(Aula.idAula)} 
	                	<td width="85" valign="top" nowrap="nowrap"><div align="center">
	                  		<input type="submit" value="Acessar"/> 
	                	</div></td> 
	                #{/form} 
	                 
	                #{form @AulaMBean.actionRemover(Aula.idAula)} 
	                 	<td width="85" valign="top" onclick = "return confirmaExcluir()" nowrap="nowrap">
	                		<input type="submit" value="Remover"/>
	                	</td> 
	                #{/form}  
                </tr>
              #{/list}
      </table>
      </center>
	  </BR>
	  </BR>						
			
	  <div class="brclear"></div>
		</div>
	</div>
  <div id="footer">Sistema de Gestão para Centro de Formação de Condutores<br>TecByte</div>

</div>

<style type="text/css">
body {
	color: #FFFFFF;
}